package com.kingdee.eas.custom.bpmworkflow.util;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.VisitorSupport;

public class SoapUtil extends VisitorSupport{
	private String BIZTRANSACTIONID;
	public void visit(Element node) {
		if ("BIZTRANSACTIONID".equals(node.getName())) {
			this.setBIZTRANSACTIONID(node.getText());
		}
	}
	
	public String getBIZTRANSACTIONID(String soapHeader) {
		try {
			Document doc = DocumentHelper.parseText(soapHeader);
			doc.accept(this);
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		return this.BIZTRANSACTIONID;
	}
	public void setBIZTRANSACTIONID(String BIZTRANSACTIONID) {
		this.BIZTRANSACTIONID = BIZTRANSACTIONID;
	}
}
